import Layout from "@/layout/index";

export default {
    path: '/marketing',
    meta: {
        path: 'marketing'
    },
    component: Layout,
    children: [
        {
            // 流量用户营销
            path: 'registerNotApply',
            name: 'RegisterNotApply',
            meta: {
                path: 'marketing/registerNotApply'
            },
            component: () => import('@/views/marketing/registerNotApply/index'),
            children: [
                {
                    // 待办列表
                    path: 'agencyList',
                    name: 'RegisterNotApplyAgency',
                    meta: {
                        path: 'marketing/registerNotApply/agencyList'
                    },
                    component: () => import('@/views/marketing/registerNotApply/agencyList/index'),
                },
                {
                    // 全部列表
                    path: 'allList',
                    name: 'RegisterNotApplyAllList',
                    meta: {
                        path: 'marketing/registerNotApply/allList'
                    },
                    component: () => import('@/views/marketing/registerNotApply/allList/index'),
                },
                {
                    // 已办列表
                    path: 'historyList',
                    name: 'RegisterNotApplyHistory',
                    meta: {
                        path: 'marketing/registerNotApply/historyList'
                    },
                    component: () => import('@/views/marketing/registerNotApply/historyList/index'),
                },
            ]
        },
        {
            // 数据用户营销
            path: 'dataUserMarket',
            name: 'DataUserMarket',
            meta: {
                path: 'marketing/dataUserMarket'
            },
            component: () => import('@/views/marketing/dataUserMarket/index'),
            children: [
                {
                    // 待办列表
                    path: 'agencyList',
                    name: 'registeredAgencyList',
                    meta: {
                        path: 'marketing/dataUserMarket/agencyList'
                    },
                    component: () => import('@/views/marketing/dataUserMarket/agencyList/index'),
                },
                {
                    // 全部列表
                    path: 'allList',
                    name: 'DataUserMarketAllList',
                    meta: {
                        path: 'marketing/dataUserMarket/allList'
                    },
                    component: () => import('@/views/marketing/dataUserMarket/allList/index'),
                },
                {
                    // 已办列表
                    path: 'historyList',
                    name: 'DataUserMarketHistory',
                    meta: {
                        path: 'marketing/dataUserMarket/historyList'
                    },
                    component: () => import('@/views/marketing/dataUserMarket/historyList/index'),
                },
            ]
        },
        {
            // 共享用户营销
            path: 'shareUserMarket',
            name: 'ShareUserMarket',
            meta: {
                path: 'marketing/shareUserMarket'
            },
            component: () => import('@/views/marketing/shareUserMarket/index'),
            children: [
                {
                    // 待办列表
                    path: 'agencyList',
                    name: 'ShareUserMarketAgency',
                    meta: {
                        path: 'marketing/shareUserMarket/agencyList'
                    },
                    component: () => import('@/views/marketing/shareUserMarket/agencyList/index'),
                },
                {
                    // 全部列表
                    path: 'allList',
                    name: 'ShareUserMarketAllList',
                    meta: {
                        path: 'marketing/shareUserMarket/allList'
                    },
                    component: () => import('@/views/marketing/shareUserMarket/allList/index'),
                },
                {
                    // 已办列表
                    path: 'historyList',
                    name: 'ShareUserMarketHistory',
                    meta: {
                        path: 'marketing/shareUserMarket/historyList'
                    },
                    component: () => import('@/views/marketing/shareUserMarket/historyList/index'),
                },
            ]
        },
        {
            // 复借用户营销
            path: 'againUserMarket',
            name: 'againUserMarket',
            meta: {
                path: 'marketing/againUserMarket'
            },
            component: () => import('@/views/marketing/againUserMarket/index'),
            children: [
                {
                    // 待办列表
                    path: 'agencyList',
                    name: 'againUserMarketAgency',
                    meta: {
                        path: 'marketing/againUserMarket/agencyList'
                    },
                    component: () => import('@/views/marketing/againUserMarket/agencyList/index'),
                },
                {
                    // 全部列表
                    path: 'allList',
                    name: 'againUserMarketAllList',
                    meta: {
                        path: 'marketing/againUserMarket/allList'
                    },
                    component: () => import('@/views/marketing/againUserMarket/allList/index'),
                },
                {
                    // 已办列表
                    path: 'historyList',
                    name: 'againUserMarketHistory',
                    meta: {
                        path: 'marketing/againUserMarket/historyList'
                    },
                    component: () => import('@/views/marketing/againUserMarket/historyList/index'),
                },
            ]
        },
        {
            // 转化用户营销
            path: 'transformUserMarket',
            name: 'transformUserMarket',
            meta: {
                path: 'marketing/transformUserMarket'
            },
            component: () => import('@/views/marketing/transformUserMarket/index'),
            children: [
                {
                    // 待办列表
                    path: 'agencyList',
                    name: 'transformUserMarketAgency',
                    meta: {
                        path: 'marketing/transformUserMarket/agencyList'
                    },
                    component: () => import('@/views/marketing/transformUserMarket/agencyList/index'),
                },
                {
                    // 全部列表
                    path: 'allList',
                    name: 'transformUserMarketAllList',
                    meta: {
                        path: 'marketing/transformUserMarket/allList'
                    },
                    component: () => import('@/views/marketing/transformUserMarket/allList/index'),
                },
                {
                    // 已办列表
                    path: 'historyList',
                    name: 'transformUserMarketHistory',
                    meta: {
                        path: 'marketing/transformUserMarket/historyList'
                    },
                    component: () => import('@/views/marketing/transformUserMarket/historyList/index'),
                },
            ]
        },
        {
            // 营销配置
            path: 'marketConfig',
            name: 'MarketConfig',
            meta: {
                path: 'marketing/marketConfig'
            },
            component: () => import('@/views/marketing/marketConfig/index'),
        },
        {
            // 生成验证码
            path: 'genCode',
            name: 'GenCode',
            meta: {
                path: 'marketing/genCode'
            },
            component: () => import('@/views/marketing/genCode/index'),
        },
        {
            // 白名单短信营销
            path: 'whileSmsMarketing',
            name: 'WhileSmsMarketing',
            meta: {
                path: 'marketing/whileSmsMarketing'
            },
            component: () => import('@/views/marketing/whileSmsMarketing/index'),
        },
    ]
}
